package com.design.model.command;

/**
 * @program: study
 * @className: Test
 * @description: TODO
 * @author: kukuxiahuni
 * @create: 2019-06-30 21:07
 * @version: v1.0
 **/
public class Test {

    public static void main(String[] args) {

        Barbecuer barbecuer = new Barbecuer(); //命令执行者

        BakeChickenCommand bakeChickenCommand = new BakeChickenCommand(barbecuer);
        BakeMuttonCommand bakeMuttonCommand = new BakeMuttonCommand(barbecuer);

        Watter watter = new Watter();
        watter.setOrder(bakeChickenCommand);
        watter.setOrder(bakeChickenCommand);
        watter.setOrder(bakeMuttonCommand);
        watter.notifyExec();
    }
}
